package com.woniu.user.mapper;

import com.woniu.user.pojo.Operation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


/**
 * <p>
 * 运营端用户表 Mapper 接口
 * </p>
 *
 * @author LiFangyu
 * @since 2023-02-15
 */
public interface OperationMapper extends BaseMapper<Operation> {

    @Select("select * from t_operation where phone = #{phone} and password = #{password} and is_deleted = 0")
    Operation login(@Param("phone") String phone,@Param("password") String password);
}
